﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ADONETDataServicesExtension.Utils;

namespace ADONETDataServicesExtension.Parsing
{
    public static class TokenId
    {
        internal const string FrameworkTypeName = "System.Data.Services.Parsing.TokenId";

        public static readonly int BinaryLiteral;
        public static readonly int BooleanLiteral;
        public static readonly int Comma;
        public static readonly int DateTimeLiteral;
        public static readonly int DecimalLiteral;
        public static readonly int DoubleLiteral;
        public static readonly int End;
        public static readonly int GuidLiteral;
        public static readonly int Identifier;
        public static readonly int IntegerLiteral;
        public static readonly int Int64Literal;
        public static readonly int TokenIdMinus;
        public static readonly int NullLiteral;
        public static readonly int OpenParen;
        public static readonly int SingleLiteral;
        public static readonly int Slash;
        public static readonly int StringLiteral;
        public static readonly int CloseParen;

        static TokenId()
        {
            BinaryLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("BinaryLiteral");
            BooleanLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("BooleanLiteral");
            Comma = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("Comma");
            DateTimeLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("DateTimeLiteral");
            DecimalLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("DecimalLiteral");
            DoubleLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("DoubleLiteral");
            End = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("End");
            GuidLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("GuidLiteral");
            Identifier = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("Identifier");
            Int64Literal = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("Int64Literal");
            IntegerLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("IntegerLiteral");
            TokenIdMinus = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("Minus");
            NullLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("NullLiteral");
            OpenParen = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("OpenParen");
            SingleLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("SingleLiteral");
            Slash = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("Slash");
            StringLiteral = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("StringLiteral");
            CloseParen = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("CloseParen");
        }
    }
}
